<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">


<head th:replace="fragments/common_header :: common-header(~{},~{})"></head>
<body>
<div id="wrapper">
    <!-- 左侧菜单栏-->
    <div th:replace="fragments/common_leftmenu :: left-menu"></div>
    <!-- 左侧菜单栏结束-->
    <div id="page-wrapper" class="gray-bg">
        <!-- 上部导航条 -->
        <div th:replace="fragments/common_top :: top-bar"></div>
        <!-- 上部导航条结束 -->
        <!--内容-->
        <div class="wrapper wrapper-content animated ">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h2>新增汽车</h2>

                        </div>
                        <div class="ibox-content">
                            <form th:method="post" th:action="@{/car/add}">
                                <div class="form-group row"><label class="col-sm-2 col-form-label">汽车编号</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="car_number" required="" maxlength="20" placeholder="请输入汽车编号">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="car_name"  maxlength="20" placeholder="请输入名称">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">所属门店</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="shop_name"  maxlength="20" placeholder="请输入所属门店">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">汽车品牌</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="car_brand"  maxlength="20" placeholder="请输入汽车品牌">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">汽车类型</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="car_type"  maxlength="20" placeholder="请输入汽车类型">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">日租金</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="daily_rent"  required="" maxlength="20" placeholder="请输入日租金">
                                    </div>
                                </div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">押金</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" name="car_deposit"  required="" maxlength="20" placeholder="请输入押金">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="text-center">
                                        <button class="btn btn-white btn-lg" type="button" onclick="doCancel();">取消</button>
                                        <button class="btn btn-primary btn-lg" type="submit">保存</button>
                                    </div>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!--内容结束-->
        <!-- 底部栏 -->
        <div th:replace="fragments/common_footer :: foot-bar"></div>
        <!-- 底部栏结束 -->
    </div>
</div>
<div th:replace="fragments/common_script :: scripts"></div>

<script>
    // 取消按钮
    function doCancel()
    {
        window.location.href = document.referrer;
    }
</script>
</body>
</html>